﻿using System;

namespace System
{
    public struct Nullable<T>
    {
        public Nullable(T val)
            : this()
        {
        }

        [NonScript]
        public bool HasValue { get; set; }

        [NonScript]
        public T Value { get; set; }

        [NonScript]
        public T GetValueOrDefault()
        {
            return default(T);
        }
    }
}
